package com.yuanchu.order.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yuanchu.order.entity.*;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-01-31 18:45
 */
@Data
public class OrderDetailDto extends YoshopOrderEntity implements Serializable {

    private YoshopOrderAddressEntity address;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<YoshopGoodsEntity> goodsList;
    // 订单配送方式
    private Integer delivery;
    private YoshopExpressEntity express;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<YoshopOrderGoodsEntity> goods;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private YoshopUserEntity user;

    @JsonInclude(JsonInclude.Include.NON_DEFAULT)
    @JsonProperty("isAllowRefund")
    private boolean isAllowRefund = false;


    public boolean getIsAllowRefund() {
        return isAllowRefund;
    }

    public void setIsAllowRefund(boolean isAllowRefund) {
        this.isAllowRefund = isAllowRefund;
    }
}
